﻿<UserControl x:Class="ColorMathLib.View.LatNex.LatticeView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="299" d:DesignWidth="329">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <ScrollViewer Grid.Row="0"  HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
            <Canvas x:Name="LatticeCanvas" Width="50" Height="50" Background="Beige">
                <Canvas.LayoutTransform>
                    <ScaleTransform
            CenterX="0" CenterY="0"
            ScaleX="{Binding ElementName=Scale,Path=Value}"
            ScaleY="{Binding ElementName=Scale,Path=Value}"/>
                </Canvas.LayoutTransform>
            </Canvas>
        </ScrollViewer>
        <Slider x:Name="Scale" Grid.Row="1" Margin="0" VerticalAlignment="Top" SmallChange="1" ValueChanged="ScaleChanged" Background="Silver" Minimum="1" Maximum="15"/>
    </Grid>
</UserControl>
